package com.ruoyi.jiaopei.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 版本管理业务对象 tb_version
 *
 * @author macy
 * @date 2024-06-28
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class TbVersionBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 版本名称
     */
    @NotBlank(message = "版本名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String versionName;
    /**
     * 版本号
     */
    private Long version;
    /**
     * 是否强制 0=不强制 1=强制
     */
    @NotBlank(message = "是否强制 0=不强制 1=强制不能为空", groups = { AddGroup.class, EditGroup.class })
    private String force;

    /**
     * 更新文件
     */
    @NotBlank(message = "更新文件不能为空", groups = { AddGroup.class, EditGroup.class })
    private String url;

    /**
     * 更新提示
     */
    @NotBlank(message = "更新提示不能为空", groups = { AddGroup.class, EditGroup.class })
    private String updateInformation;


}
